package io.renren.service;

import io.renren.common.service.CrudService;
import io.renren.dto.UnionidmDTO;
import io.renren.dto.WeChatMiniAuthorizeVo;
import io.renren.entity.UnionidmEntity;

/**
 * ${comments}
 *
 * @author Sen 524227263@qq.com
 * @since 1.0.0 2024-06-10
 */
public interface UnionidmService extends CrudService<UnionidmEntity, UnionidmDTO> {

    UnionidmEntity findOneByOpenId(String openId, String type);

    UnionidmEntity saveInfo(String openId);

    UnionidmEntity saveInfoMini(WeChatMiniAuthorizeVo weChatAccessPhoneNumberVo);

    UnionidmEntity findOneByUnionId(String unionId, String number);
}